
#include<bits/stdc++.h>
#define ll long long
using namespace std;
const int N=100010;
int n,a[N]={0};
short att[N];
int ans;
inline int read()
{
    int f=1,x=0;
    char ch=getchar();
    while(ch>'9'||ch<'0')
    {
        f=-f;ch=getchar();
    }
    while(ch<='9'&&ch>='0')
    {
        x=x*10+ch-'0';
        ch=getchar();
    }
    return f*x;
}
inline void write(int x)
{
    if(x<0) putchar('-'),x=-x;
    if(x>9) write(x/10);
    putchar(x%10+'0');
}
int main()
{
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    n=read();int maxn=0;
    for(int i=1;i<=n;i++) {int x=read();a[x]++;maxn=max(maxn,x);}
    copy(a,a+maxn+1,att);
    for(int i=1;i<=maxn;i++)
    {
        for(int j=i+1;j<=maxn;j++)
        {
            while(a[i]>=1&&a[j]>=1&&att[j]>=1)
            {
                a[i]--;att[j]--;ans++;
            }
        }
    }
    write(n-ans);
    return 0;
}
